(function (fruit, util, global) {

    //["ClickStage", "SelectNode", "UnSelectNode", "SelectLink", "OverNode", "OutNode", "Zooming", "DragStart", "Draging", "DragEnd", "Updating", "OverInterface", "OutInterface", "OverLink", "OutLink", "DragNodeStart", "DragNode", "DragNodeEnd"]

    fruit.define("fruit.graphic.Topology.SceneDefault",fruit.graphic.Topology.Scene,{
            methods:{
                init:function(inTopology, inContext){
                    this.inherited(inTopology, inContext);
                    this.nodeToolTip = new fruit.graphic.Topology.NodeToolTip();
                },
                OverNode:function(sender,node){
                    var nodeToolTip = this.nodeToolTip;
                    var ele_bound = this.topology.getBound();
                    var nodeBound = node.position();
                    nodeToolTip.title(node.label());
                    nodeToolTip.setData(node.data);
                    nodeToolTip.open({
                        target: {
                            x: ele_bound.left + nodeBound.x,
                            y: ele_bound.top + nodeBound.y
                        },
                        offsetX: 0 + node.size() * node.scale() / 2 ,
                        offsetY: 0
                    });
                },
                OutNode:function(sender,node){
                    node.fadeIn();
                }
            }
    })
})(fruit, fruit.util, fruit.global);